<?php
define('OSS', 'http://kaoshituji.oss-cn-shanghai.aliyuncs.com/'); //把*替换成对应的Bucket 由于经常用到该链接，所以定义成常量
return array(
//'DB_DSN' => 'mysql://vmtshopUser:IDFe87rkliKDF@localhost:3306/vmtshop#utf8',
//'DB_DSN' => 'mysqli://root:usbw@localhost:3306/ailvo_mall#utf8',
//'DB_DSN2' => 'mysqli://root:usbw@localhost:3306/ailvo#utf8',
//'DB_DSN' => 'mysqli://root:ailvo.com@wenzouquan190@localhost:3306/ailvo_mall#utf8',
//'DB_DSN2' => 'mysqli://root:ailvo.com@wenzouquan190@localhost:3306/ailvo#utf8',
    /*********  debug配置  *********/
    'SHOW_PAGE_TRACE' => false,                       //显示debugTrace
    'DEFAULT_CONTROLLER' => 'Index',
    'URL_PATHINFO_DEPR' => '/',
    'DEFAULT_ACTION' => 'index',
    /*************使用一层级的项目*** //URL支持二级域名或二级目录****/
    'APP_LEVEL_1' => array('BoxApi', 'BoxAdmin', 'BoxPay', 'BoxDemo', 'BoxAddon', 'BoxLogin', 'BoxDoc'),//使用一层级的项目
    'DOMAIN_LEVEL_1' => array('pay' => 'BoxPay', 'admin' => 'BoxAdmin', 'api' => 'BoxApi', 'login' => 'BoxLogin'),//使用一层级的二级域名
    /*********  DB配置  *********/
    'DB_DSNS' => array(
       'system' => 'Mysql://root:B2Edfmall#kaoshituji123456@127.0.0.1:3306/boxphp#utf8',
       'edu' => 'Mysql://root:B2Edfmall#kaoshituji123456@127.0.0.1:3306/jiaoyu#utf8',
       'eng' => 'Mysql://root:B2Edfmall#kaoshituji123456@127.0.0.1:3306/boxeng#utf8',
    ),
 
    /*******如果*DB配没有 读这默认配置***/
    'DB_TYPE' => 'mysql', //数据库类型
//'DB_HOST' => '127.0.0.1:8066', //服务器地址
    'DB_HOST' => '127.0.0.1',
    'DB_NAME' => 'boxphp', //数据库名
    'DB_USER' => 'root', //用户名
    'DB_PWD' => 'B2Edfmall#kaoshituji123456', //密码

    /*'DB_TYPE' => 'mysql', //数据库类型
    'DB_HOST' => '127.0.0.1', //服务器地址
    'DB_NAME' => 'boxphp', //数据库名
    'DB_USER' => 'root', //用户名
    'DB_PWD' => 'usbw', //密码*/

    /*'DB_NAME' => 'longhuiguan', //数据库名
    'DB_USER' => 'longhuiguan_user', //用户名
    'DB_PWD' => 'LongHuiGuanlg45u#$534', //密码*/
    'DB_PREFIX' => '', //数据库表前缀
    /****缓存***/
    'FIND_CACHE' => 1,        //使用find时，开启缓存
    'autopartition' => '0',        //自增主键ID使用数据的system_gennum
    'DATA_CACHE_TIME' => 0,      // 数据缓存有效期 0表示永久缓存存
    'DATA_CACHE_PREFIX' => 'BoxPHP_1.4',     // 缓存前缀
    'LOG_RECORD' => true,
    'DATA_CACHE_TYPE' => 'Memcache',  // 数据缓存类型,支持:File|Db|Apc|Memcache|Shmop|Sqlite|Xcache|Apachenote|Eaccelerator|Redis
    'LOG_LEVEL' => 'EMERG,ALERT,CRIT,ERR',// 允许记录的日志级别
    'TMPL_EXCEPTION_FILE' => COMMON_PATH . '/Tpl/box_php_exception.tpl',
    'runThreadKey' => "wenxere18974$%@^&rtty",//fscokopen仿异步调用使用密钥 2次md5
    'thinkEncryptKey' => 'wenxere18974$%@^&rtty', //用于加密的密钥
    /****短信通道**/
    'smsDriver' => 'Bluesms',
    /****视频上传接口***/
    'videoDriver' => 'Aodianyun',
    /*****SESSION配置****/
    'SESSION_OPTIONS' => array(
        'type' => 'Common\\Org\\Session\\Driver\\Db',//session采用数据库保存
        'expire' => 1800,//session过期时间，如果不设就是php.ini中设置的默认值
		//'id'=>'h3qpouv1dirn1dil5dbh323hu7',
    ),
    /********上传文件设置***/
     'UPLOAD_SITEIMG' => array(
        'driver' => 'Common\\Org\\Upload\\Driver\\Aliyun',
        'driverConfig' => array(
            'AccessKeyId' => 'ZU0GpHvgAHN2S57t',    //AccessKeyId
            'AccessKeySecret' => '4nOLeCo3z4CpKZ2vdOddfNBfD45TXN',//AccessKeySecret
            'domain' => OSS,        //
            'Bucket' => 'kaoshituji',         //Bucket
            'rootPath' => '',
            'Endpoint' => 'http://oss-cn-shanghai.aliyuncs.com',
            'type' => 'OSS',
        ),
    ),


    'LOGIN_ONE' => '1',//不支持多个地方登录
    'SESSION_TABLE' => 'system_session',//保存
    'SESSION_AUTO_START' => false,

    'MODULE_ALLOW_LIST' => array('BoxEdu', 'BoxEng'),
    'DEFAULT_MODULE' => 'BoxEdu',
    'TMPL_L_DELIM' => '<{',
    'TMPL_R_DELIM' => '}>',
    'URL_MODEL' => 2,
    'URL_HTML_SUFFIX' => '',
    'CONTROLLER_LEVEL' => 2,
    'URL_CASE_INSENSITIVE' => false,
    'SESSION_AUTO_START' => false,
    'APP_SUB_DOMAIN_DEPLOY' => 1,
    'DB_FIELDS_CACHE' => true,//字段缓存
    'APP_SUB_DOMAIN_RULES' => array(
        'test' => array('BoxEdu/Home'),
    ),
    'AUTOLOAD_NAMESPACE' => array(
        'Common' => COMMON_PATH,
        'Addons' => ADDONS_PATH,
        'Apps' => APP_PATH
    ),
    'TMPL_PARSE_STRING' => array(
        '__PUBLIC__' => '/Public',
        '__JS__' => PUBLIC_PATH . '/Js',
        '__AdminCss__' => PUBLIC_PATH . '/BoxAmin/Ace/css',
        '__AdminImages__' => PUBLIC_PATH . '/BoxAmin/Ace/images',
        '__AdminJs__' => PUBLIC_PATH . '/BoxAmin/Ace/js',
        '__Img__' => ImgDomain,
        '__Css__' => PUBLIC_PATH . '/Css',
        '__BoxSNSCss__' => PUBLIC_PATH . '/BoxSns/Public/Css',
    ),
    'ADMIN_VIEW_PATH' => './Apps/BoxAdmin/View/Ace/',
);

?>
